package com.ws.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Types;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    private Integer id;
    private String cover;
    private String name;
    private String intro;
    private String spec;
    private Integer price;
    private Integer stock;
    private Integer sales;
    private String content;
    private Integer typeId;
    private Types type;// 类型详情。数据库中没有对应的字段，需要根据typeId在types表中查询。
    private boolean top;
}
